<?
if(!isUserLoggedIn())
    $username = "Tú";
else
    $username = $loggedInUser->display_username;
$resver=14;
?>
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="content-language" content="es">
<link rel="shortcut icon" href="http://cos.as/favicon.ico" type="image/gif"/>
<link rel="icon" href="http://cos.as/favicon.ico" type="image/gif"/>
<title><?=$headtitle?></title>
<link type="text/css" href="c.css?v=<?=$resver?>" rel="stylesheet">
<script type="text/javascript" src="js/jquery-1.6.4.min.js"></script>
<script type="text/javascript" src="s.js?v=<?=$resver?>"></script>
<script type="text/javascript">var _gaq=_gaq||[];_gaq.push(['_setAccount','UA-808946-21']);_gaq.push(['_trackPageview']);(function(){var ga=document.createElement('script');ga.type='text/javascript';ga.async=true;ga.src=('https:'==document.location.protocol?'https://ssl':'http://www')+'.google-analytics.com/ga.js';var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(ga,s)})();</script>
<script>
    window.onload=function(){<?=$onload?>}
</script>
</head>
<body>
<div id="header">
    <div id="youlink"><a id="youtext" href="#" onclick="dlg(dyou);return false"><?=$username?></a></div>
    <div id="welink"><a href="#" onclick="dlg(dwe);return false">Nosotros</a></div>
    <div id="lics">
        <a href="http://twitter.com/cos_as"><img src="img/twitter.png"/></a>
        <a href="http://www.gnu.org/licenses/gpl.html" rel="license"><img src="img/gpl.png"/></a>
        <a href="http://creativecommons.org/licenses/by-nc-sa/2.5/es/deed.es" rel="license"><img src="img/ccbyncsa.png"/></a>
    </div>
</div>
<div id="alert" class="dlg"><div id="alertm"><div id="alertc"><?=$alert?></div><p class="buttons"><a class="button iprompt" onclick="ndlg()">cancelar</a> <a class="button always" onclick="ndlg(true)">aceptar</a></p></div></div>